﻿<%@ Page Title="" Language="C#" MasterPageFile="~/controlasistencia/Plantilla.Master" AutoEventWireup="true" CodeBehind="reporteDiarioComision.aspx.cs" Inherits="Presentacion.controlasistencia.reporteDiarioComision" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="css/loaders.css" />
    <script>
        $(document).ready(function () {
            $(document).on("click", ".loading", function () {
                $("#loader").modal('show');
            })
        });
        function sucessMessage(success) {

            Messenger.options = {
                extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',
                theme: 'flat'
            }

            Messenger().post({
                message: success,
                type: 'success',
                showCloseButton: true
            });
        }

        function errorMessage(errorMessage) {

            Messenger.options = {
                extraClasses: 'messenger-fixed messenger-on-bottom messenger-on-right',
                theme: 'flat'
            }

            Messenger().post({
                message: errorMessage,
                type: 'error',
                showCloseButton: true
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contenido" runat="server">
    
    <form id="Form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableViewState="true"></asp:ScriptManager>
        <div class="row">
            <div class="col-lg-12">
                <div class="page-title">
                    <h2>Reporte diario por curso
                        <small>
                            <asp:Label ID="lblCarrera" runat="server" Text=""></asp:Label></small>
                    </h2>
                    <ol class="breadcrumb">
                        <li><i class="fa"></i><a href="index.aspx" class="tamano-breadcrumbs">Inicio</a>
                        </li>
                        <li class="active tamano-breadcrumbs">Reportes Comisión académica</li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="row">

            <div class="col-lg-12">

                <div class="portlet portlet-green">
                    <div class="portlet-heading">
                        <div class="portlet-title">
                            <h4>Reporte </h4>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="portlet-body">
                        <div class="clearfix"></div>
                        <div class="col-lg-12">
                            <div class="col-lg-4">
                                <p>
                                    Periodo
                                </p>
                                <asp:DropDownList ID="ddlPeriodo" runat="server" ClientIDMode="Static" CssClass="form-control" onchange=""></asp:DropDownList>
                            </div>
                            <div class="col-lg-3">
                                <p>Carrera</p>
                                <asp:DropDownList ID="ddlCarrera" runat="server" ClientIDMode="Static" CssClass="form-control"></asp:DropDownList>
                            </div>
                            <div class="col-lg-3">
                                <p>Semestre</p>
                                <asp:DropDownList ID="ddlSemestre" runat="server" ClientIDMode="Static" CssClass="form-control">
                                    <asp:ListItem Text="Primer" Value="1" />
                                    <asp:ListItem Text="Segundo" Value="2" />
                                    <asp:ListItem Text="Terce" Value="3" />
                                    <asp:ListItem Text="Cuarto" Value="4" />
                                    <asp:ListItem Text="Quinto" Value="5" />
                                    <asp:ListItem Text="Sexto" Value="6" />
                                    <asp:ListItem Text="Séptimo" Value="7" />
                                    <asp:ListItem Text="Octavo" Value="8" />
                                    <asp:ListItem Text="Noveno" Value="9" />
                                    <asp:ListItem Text="Décimo" Value="10" />
                                </asp:DropDownList>
                            </div>
                            <div class="col-lg-2">
                                <p>Paralelo</p>
                                <asp:DropDownList ID="ddlParalelo" runat="server" ClientIDMode="Static" CssClass="form-control">
                                    <asp:ListItem Text="A" Value="A" />
                                    <asp:ListItem Text="B" Value="B" />
                                    <asp:ListItem Text="C" Value="C" />
                                </asp:DropDownList>
                            </div>
                            <div class="col-lg-4">
                                <p>Dia</p>
                                <input type="date" name="name" id="fecha" class="form-control" runat="server" />
                            </div>
                            <div class="col-lg-4">
                                <p>&nbsp    </p>
                                <asp:LinkButton ID="generar" runat="server" CssClass="btn btn-green loading" OnClick="generar_Click" ><i class="fa fa-building-o"></i> Generar Reporte</asp:LinkButton>
                            </div>

                        </div>
                        <p>&nbsp</p>
                        <p>&nbsp</p>
                        <p>&nbsp</p>
                        <p>&nbsp</p>
                        <div class="table-responsive col-sm-12 col-lg-12">
                            <div class="col-lg-2">
                            </div>
                                            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%">
                                                <LocalReport ReportEmbeddedResource="Presentacion.controlasistencia.reports.ReportComisionDiario.rdlc">
                                                    <DataSources>
                                                        <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="dtsComisionDiario" />
                                                    </DataSources>
                                                </LocalReport>

                                            </rsweb:ReportViewer>
                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="consultarReporteDiarioCurso" TypeName="Negocio.catalogos.catalogoReporte, Negocio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" OldValuesParameterFormatString="original_{0}">
                                                <SelectParameters>
                                                    <asp:Parameter Name="dia" Type="String"></asp:Parameter>
                                                    <asp:Parameter Name="periodo" Type="Int32"></asp:Parameter>
                                                    <asp:Parameter Name="carrera" Type="Int32"></asp:Parameter>
                                                    <asp:Parameter Name="semestre" Type="Int32"></asp:Parameter>
                                                    <asp:Parameter Name="paralelo" Type="string"></asp:Parameter>

                                                    <asp:Parameter Name="fecha" Type="DateTime"></asp:Parameter>
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal fade" id="loader" tabindex="-1" role="dialog" aria-labelledby="flexModalLabel" aria-hidden="true">
            <div style="height: 50%;"></div>
            <div class="col-lg-12">
                <div class="col-lg-5">
                </div>
                <div class="col-lg-2" style="left: 5%;">
                    <div class="loader" style="width: inherit; height: inherit;">
                        <div class="loader-inner ball-spin-fade-loader">
                            <div></div>
                            <div></div>
                            <div></div>
                            <div></div>
                            <div></div>
                            <div></div>
                            <div></div>
                            <div></div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-5">
                </div>
            </div>
        </div>
        <script>

           
        </script>
    </form>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">

</asp:Content>
